package com.example.shop.service;

import com.example.shop.domain.Agreement;
import com.example.shop.domain.Goods;
import com.example.shop.domain.User;

import java.util.List;

public interface AgreementService {


    List<Agreement> selectList(String name);

    void add(Agreement agreement);

    Agreement selectById(Agreement agreement);

    int delete(Agreement agreement);

    void update(Agreement agreement);

    int borrow(Goods goods);

    List<Agreement> selectListIn();

    Agreement getAgreementInf(Goods goods);



    void lend(Goods goods);

     User  getInInf(Goods goods);

    void takeBack(Goods goods);

    void returnGoods(int id);
}
